package com.xiaoniu.lib_keleim.utils;

import com.google.gson.Gson;

public class GsonUtil {
    public static Gson mGson = new Gson();

    public static String toJson(Object obj){
        return mGson.toJson(obj);
    }

    public static  <T> T fromJson(String messageJson, Class<T> classOfT) {
        return mGson.fromJson(messageJson,classOfT);
    }
}
